<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" type="text/css" href="<%=basePath%>admin/css/global.css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath%>admin/css/page.css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath%>admin/css/form.css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath%>admin/css/style.css" />
		<link rel="stylesheet" type="text/css"	href="<%=basePath%>admin/css/dialog.css" />
		<title></title>
	</head>
	<body>
   	<div class="wapper show">
		<h2 class="pagerTitle tabTitle" >
		<s:if test='pg.kind=="bo"'><a class="tab tabActive">修改BO内容</a></s:if>
		<s:if test='pg.kind=="book"'><a class="tab tabActive">修改季刊内容</a></s:if>
		</h2>
		<form id="booksform" name="booksform" enctype="multipart/form-data" method="post" action="updateBooks.action?type=<s:if test='pg.kind=="bo"'>bo</s:if><s:if test='pg.kind=="book"'>book</s:if>">
		<div class="inputLabelParent">
			<input type="hidden" name="booksId" id="id" value="${pg.id}"/>
		<s:if test='pg.kind=="bo"'>
			<div class="inputLabel">
			<label class="left">产品名称:</label><input type="text" name="pg.lable1" id="title" class="text" style="width:300px;" maxlength="50" value="${pg.lable1}"><span class="tips" id="titleerror">* 必填，50字以内</span>
			</div>
			<div class="inputLabel">
			<label class="left">产品编号:</label><input type="text" name="pg.lable2" class="text" style="width:300px;" maxlength="50" value="${pg.lable2}">
			</div>
		</s:if>
		<s:else>
			<s:if test='pg.kind=="book"&&pg.groupTopId!="2"'>
			<div class="inputLabel">
			<label class="left">标题:</label><input type="text" name="pg.lable1" id="title" class="text" style="width:300px;" maxlength="50" value="${pg.lable1}"><span class="tips" id="titleerror">* 必填，50字以内</span>
			</div>
			<div class="inputLabel heightauto">
			<label class="left">内容: </label><textarea name="pg.lable21">${pg.lable21}</textarea>
			</div>		
			</s:if>
			<s:else>
			<div class="inputLabel">
			<label class="left">标题:</label><input type="text" name="pg.lable1" id="title" class="text" style="width:300px;" maxlength="50" value="${pg.lable1}"><span class="tips" id="titleerror">* 必填，50字以内</span>
			</div>
			<div class="inputLabel">
			<label class="left">City:</label><input type="text" name="pg.lable3"  class="text" style="width:300px;" maxlength="50" value="${pg.lable3}">
			</div>
			<div class="inputLabel">
			<label class="left">Category:</label><input type="text" name="pg.lable4"  class="text" style="width:300px;" maxlength="50" value="${pg.lable4}">
			</div>
			<div class="inputLabel">
			<label class="left">Brand:</label><input type="text" name="pg.lable5"  class="text" style="width:300px;" maxlength="50" value="${pg.lable5}">
			</div>
			<div class="inputLabel">
			<label class="left">Est. cost w/ tax:</label><input type="text" name="pg.lable6"  class="text" style="width:300px;" maxlength="50" value="${pg.lable6}">
			</div>
			<div class="inputLabel">
			<label class="left" style="width:170px;">Promotion Mechanism:</label><input type="text" name="pg.lable7"  class="text" style="width:300px;" maxlength="50" value="${pg.lable7}">
			</div>
			<div class="inputLabel">
			<label class="left">Promotion Time:</label><input type="text" name="pg.lable8"  class="text" style="width:300px;" maxlength="50" value="${pg.lable8}">
			</div>
			<div class="inputLabel">
			<label class="left">Promotion Channel:</label><input type="text" name="pg.lable9"  class="text" style="width:300px;" maxlength="50" value="${pg.lable9}">
			</div>
			<div class="inputLabel">
			<label class="left">Discovery Location:</label><input type="text" name="pg.lable10"  class="text" style="width:300px;" maxlength="50" value="${pg.lable10}">
			</div>
			<div class="inputLabel">
			<label class="left">Premium Materials:</label><input type="text" name="pg.lable11"  class="text" style="width:300px;" maxlength="50" value="${pg.lable11}">
			</div>								
			</s:else>
		</s:else>
			<div style="color:#ff0000; font-size:12px; clear:both; height:100px;">
			<p style="margin-left:150px;">提示:本系统咱不提供可视化图片管理，请在导入时注意图片数量和图片排序。</p>
			</div>
			<div style="clear:both; padding-left:500px;">
			<div class="submit submitFloat"><input type="button" id="updateBooks" value="保存" />  <input type="button" id="returnBooks" value="返回" /> 
			</div>
			</div>
		</div>
		</form>
		<input type="hidden" id="errorinfo" value="${errorinfo}" />
   	</div>
   
   
   		<script type="text/javascript" src="<%=basePath%>admin/js/jquery.js"></script>
		<script type="text/javascript" src="<%=basePath%>admin/js/jqueryui.js"></script>
		<script type="text/javascript" src="<%=basePath%>admin/js/simpleDialog.js"></script>
		<script type="text/javascript" src="<%=basePath%>admin/js/simplePage.js"></script>
		<script type="text/javascript" src="<%=basePath%>admin/book/js/checkForm.js"></script>
<s:if test='pg.kind=="book"&&pg.groupTopId!="2"'>
   		<script type="text/javascript" src="<%=basePath%>admin/fckeditor/fckeditor.js"> </script> 
   		<script language="JavaScript" type="text/javascript" charset="utf-8"> 
    		window.onload = function() { 
    		var oFCKeditor = new FCKeditor( 'pg.lable21' ) ; 
    		oFCKeditor.BasePath = '<%=basePath%>admin/fckeditor/';        
    		oFCKeditor.Height = 450 ;       
   			oFCKeditor.Width = 630 ;        
			oFCKeditor.ToolbarSet = 'Default';
			oFCKeditor.Config["CustomConfigurationsPath"]="<%=basePath%>admin/fckeditor/myconfig.js";
			oFCKeditor.ReplaceTextarea();
    }
  </script>
  </s:if>
  </body>
</html>
